import Vue from 'vue'
import VueRouter from 'vue-router'
import XianShi from '@/views/XianShi.vue'
import MyCategory from '@/views/my-category.vue'
import MyMain from '@/views/my-main.vue'
import MyMe from '@/views/my-me.vue'
import MyOrder from '@/views/my-order.vue'


Vue.use(VueRouter)
const router = new VueRouter({
    routes: [
        {path:'/',redirect:'/xianshi/main'},
        // { path: '/category', component: MyCategory },
        // { path: '/main', component: MyMain },
        
        // { path: '/myme', component: MyMe },

        // { path: '/order', component: MyOrder },
        {
            path: '/xianshi',
            component: XianShi,
            children: [
                { path: 'category', component: MyCategory },
                { path: 'main', component: MyMain },
                { path: 'myme', component: MyMe },
                { path: 'order', component: MyOrder },
            ]
        }
    ]
}
    )
export default router